package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseShip;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseShip is a Querydsl query type for EBaseShip
 */
@Label("船舶基本信息表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseShip extends RelationalPathBase<EBaseShip> {

    private static final long serialVersionUID = -684804010;

    public static final QBaseShip baseShip = new QBaseShip("base_ship");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseShip> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompany> baseShipBaseCompany1Fk = createForeignKey(baseCompanyId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseVoyage> _baseVoyageBaseShip1Fk = createInvForeignKey(id, "base_ship_id");

    }

    public final StringPath baseCompanyId = createString("baseCompanyId");

    public final StringPath belonged = createString("belonged");

    public final StringPath comments = createString("comments");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath location = createString("location");

    public final StringPath mmsi = createString("mmsi");

    public final StringPath name = createString("name");

    public final StringPath shipOwnerId = createString("shipOwnerId");

    public final StringPath status = createString("status");

    public final NumberPath<Float> tonnage = createNumber("tonnage", Float.class);

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseShip(String variable) {
        super(EBaseShip.class, forVariable(variable), "null", "base_ship");
        addMetadata();
    }

    public QBaseShip(String variable, String schema, String table) {
        super(EBaseShip.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseShip(Path<? extends EBaseShip> path) {
        super(path.getType(), path.getMetadata(), "null", "base_ship");
        addMetadata();
    }

    public QBaseShip(PathMetadata<?> metadata) {
        super(EBaseShip.class, metadata, "null", "base_ship");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(baseCompanyId, ColumnMetadata.named("base_company_id").withIndex(11).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(belonged, ColumnMetadata.named("belonged").withIndex(6).ofType(Types.VARCHAR).withSize(45));
        addMetadata(comments, ColumnMetadata.named("comments").withIndex(10).ofType(Types.VARCHAR).withSize(256));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(9).ofType(Types.VARCHAR).withSize(45));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(location, ColumnMetadata.named("location").withIndex(7).ofType(Types.VARCHAR).withSize(45));
        addMetadata(mmsi, ColumnMetadata.named("mmsi").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(name, ColumnMetadata.named("name").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(shipOwnerId, ColumnMetadata.named("shipOwnerId").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(status, ColumnMetadata.named("status").withIndex(8).ofType(Types.VARCHAR).withSize(45));
        addMetadata(tonnage, ColumnMetadata.named("tonnage").withIndex(5).ofType(Types.REAL).withSize(12));
    }

}

